package com.cn.zuul.feign;


import com.cn.common.pojo.ResultModel;
import com.cn.zuul.feign.fallback.SecurityFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "login",fallback = SecurityFallBack.class)
@Component
public interface SecurityFeign {

    @GetMapping("/JWTuser/checkAccessToUri")
    ResultModel checkAccessToUri(@RequestParam("uri") String uri, @RequestParam("username") String username);
}
